#ifndef ICYSETTINGS_H
#define ICYSETTINGS_H

#include <QCoreApplication>
#include <QSettings>
#include <QDebug>
#include <QIcon>
#include <QDir>
#include <QUrl>


struct IcyAccount { QString sScreenName,
                            sPassword;
                    bool    bSavePassword; };
typedef QList<IcyAccount > accList;

class IcySettings
{
    public:
        explicit IcySettings();
        ~IcySettings();

        _fastcall QIcon getIcon(const QString &sIcon);
        _fastcall void getAccounts(accList *accounts);
        void saveAccount(const QString &sScreenName,
                         const QString &sPassword,
                         const bool bSavePassword,
                         const int iIndex);

    private:
        QSettings *settings;

        void loadSettings();
        void saveSettings();

};

#endif // ICYSETTINGS_H
